package com.monolithiot.huawei.api;

import com.monolithiot.huawei.vo.TokenResponseBody;
import com.monolithiot.huawei.vo.WeightRequestBody;
import com.monolithiot.huawei.vo.WeightResponseBody;

import java.io.IOException;

/**
 * 2019/1/9 Create by 郭文梁
 * ApiClient
 * API客户端
 *
 * @author 郭文梁
 * @date 2019/1/9
 */
public interface ApiClient {
    /**
     * 获取令牌
     *
     * @return 令牌
     * @throws IOException IOE
     */
    TokenResponseBody getToken() throws IOException;

    /**
     * 更新重量体积数据
     *
     * @param requestBody 请求数据
     * @param token       令牌
     * @return WeightResponseBody
     * @throws IOException IOE
     */
    WeightResponseBody updateLpnWeightVolume(WeightRequestBody requestBody, TokenResponseBody token) throws IOException;
}
